package com.msmall.community.mood.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

/**
 * 用户心情
 *
 */
@Entity
@Table(name="base_user_mood")
public class Mood extends BaseObject{

	private static final long serialVersionUID = -2388318144857096179L;

	@Id
	@Column(name="mood_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long moodId;
	
	@Column(name="mood", length=200)
	private String mood;
	
	/**
	 * 其他人是否可见
	 */
	@Column(name="visible")
	private Integer visible;
	
	@Column(name="user_id")
	private Long userid;
	
	/**
	 * 赞次数
	 */
	@Column(name="top_amount")
	private Integer topAmount;
	
	/**
	 * 鄙视次数
	 */
	@Column(name="down_amount")
	private Integer downAmount;
	
	/**
	 * 查看次数
	 */
	@Column(name="click_amount")
	private Integer clickAmount;
	
	/**
	 * 评论次数
	 */
	@Column(name="reply_amount")
	private Integer replyAmount;
	/**
	 * 转发次数
	 */
	@Column(name="forward_amount")
	private Integer forwardAmount;
	
	@Column(name="create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	public Long getMoodId() {
		return moodId;
	}

	public void setMoodId(Long moodId) {
		this.moodId = moodId;
	}

	public String getMood() {
		return mood;
	}

	public void setMood(String mood) {
		this.mood = mood;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getVisible() {
		return visible;
	}

	public void setVisible(Integer visible) {
		this.visible = visible;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Integer getTopAmount() {
		return topAmount;
	}

	public void setTopAmount(Integer topAmount) {
		this.topAmount = topAmount;
	}

	public Integer getDownAmount() {
		return downAmount;
	}

	public void setDownAmount(Integer downAmount) {
		this.downAmount = downAmount;
	}

	public Integer getReplyAmount() {
		return replyAmount;
	}

	public void setReplyAmount(Integer replyAmount) {
		this.replyAmount = replyAmount;
	}

	public Integer getForwardAmount() {
		return forwardAmount;
	}

	public void setForwardAmount(Integer forwardAmount) {
		this.forwardAmount = forwardAmount;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
